<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-18 16:39:01
 * @Last Modified time: 2023-02-18 17:16:30
 */
namespace app\common\dao\store;

use frank\base\BaseDao;
use app\common\model\store\OrderRefundModel;

/**
 * Class OrderRefundDao
 * @package app\common\dao\store
 */
class OrderRefundDao extends BaseDao
{
    /**
     * 设置模型名
     */
    protected function setModel(): string
    {
        return OrderRefundModel::class;
    }
    
    /**
     * 获取列表
     */
    public function getOrderRefundList(?array $where = [], int $page, int $limit, ?array $field = [], ?array $with = [])
    {
        return $this->search($where)->with($with)->field($field ?? ['*'])->order('id DESC')->page($page)->paginate($limit);
    }

}

